package com.nidu.demo.config.dto;

import com.nidu.demo.base.BaseCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 配置添加命令
 *
 * @author auto
 */
@Data
@Schema(description = "配置添加命令")
@EqualsAndHashCode(callSuper = true)
public class ConfigAddCmd extends BaseCmd {

    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空")
    @Size(max = 128, message = "配置名称长度不能超过128个字符")
    @Schema(description = "配置名称", example = "系统名称")
    private String configName;

    /**
     * 配置键名
     */
    @NotBlank(message = "配置键名不能为空")
    @Size(max = 128, message = "配置键名长度不能超过128个字符")
    @Schema(description = "配置键名", example = "system.name")
    private String configKey;

    /**
     * 配置键值
     */
    @NotBlank(message = "配置键值不能为空")
    @Size(max = 128, message = "配置键值长度不能超过128个字符")
    @Schema(description = "配置键值", example = "COLA管理系统")
    private String configValue;

} 